package com.huisenky.smallidea.devalue;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class DefaultTypeValRegistration extends AbstractTypeValRegistration {

    @Override
    public Map<Class<?>, Object> register() {
        Map<Class<?>, Object> registration = new HashMap<>();
        registration.put(Integer.class, 0);
        registration.put(Float.class, 0f);
        registration.put(Double.class, 0d);
        registration.put(Byte.class, 0);
        registration.put(Long.class, 0L);
        registration.put(BigDecimal.class, BigDecimal.ZERO);
        registration.put(String.class, "");
        registration.put(Boolean.class, false);
        registration.put(Date.class, new Date());
        return registration;
    }
}
